﻿@model IEnumerable<trangbaocao.Models.UserAssociateModel>        
<!--Body-->
<div align="center"><h1>THÔNG TIN CÁ NHÂN NGƯỜI DÙNG</h1></div>
<div class="container_12">
    <div class="grid_12">
        <!-- Notification boxes -->
        @if (TempData["msg"] != null)
        {                            
            <span class="notification n-success">@TempData["msg"]</span>
        } 
        <div class="bottom-spacing">
            <!-- Button -->
                
        </div>   
        <!-- Example table -->
        @using (Html.BeginForm("CheckedAction", "User", FormMethod.Post, new { id = "CheckedAction", name = "CheckedAction" }))
        {           
            <div class="module">
                <h2><span>@*Sample table*@</span></h2>                    
                <div class="module-table-body">
                    <div class="scrolling">
                        <div class="data-table" style="width:200%">
                            <table id="myTable" class="tablesorter">
                                <thead>
                                    <tr>
                                        <th style="width:4%;">STT</th>
                                        <th style="width:4%;">Sửa</th>                                
                                        <th >Tên đăng nhập</th>
                                        <th >Mật khẩu</th>
                                        <th >Quyền</th>
                                        <th >Trạng thái</th>
                                        <th >Tên trạm</th>
                                        <th >Tên trung tâm</th>
                                        
                                        <th style="width:130px;">Họ tên</th>
                                        <th >Số điện thoại</th>
                                        <th >Email</th>
                                        <th >Ghi chú</th>
                                    </tr>
                                </thead>
                            <tbody>
                        @{int stt = 0;}
                        @foreach (var item in Model)
                        {
                            stt++;
                            <tr>
                                <td class="align-center">@stt</td>
                                <td class="align-center">
                                    
                                    @*<a href="" title=""><img src="../../Content/Body/Images/tick-circle.gif"  width="16" height="16" alt="published" /></a>*@
                                    <a href="@Url.Action("EditCurrentUser", "User", new { id = item.id })" title="Sửa thông tin"><img src="../../Content/Body/Images/pencil.gif"  width="16" height="16" alt="edit" /></a>&nbsp;&nbsp;&nbsp;
                                    @*<a href=""><img src="../../Content/Body/Images/balloon.gif" width="16" height="16" alt="comments" /></a>*@
                                    
                                </td>
                                @*<td class="align-center"><input type="checkbox" name="Items" id="Items[]" value="@item.user_name"/></td>*@
                                
                                <td>@Html.DisplayFor(modelItem => item.user_name)</td>
                                <td>@Html.DisplayFor(modelItem => item.password)</td>
                                <td>@Html.DisplayFor(modelItem => item.quyen)</td>
                                <td>@Html.DisplayFor(modelItem => item.status)</td>
                                <td>@Html.DisplayFor(modelItem => item.stations_name)</td>
                                <td>@Html.DisplayFor(modelItem => item.main_stations_name)</td>                                
                                <td>@Html.DisplayFor(modelItem => item.ho_ten)</td>
                                <td>@Html.DisplayFor(modelItem => item.so_dt)</td>
                                <td>@Html.DisplayFor(modelItem => item.email)</td> 
                                <td>@Html.DisplayFor(modelItem => item.ghi_chu)</td>                                   
                                
                            </tr>
                        }   
                        </tbody>
                    </table>
                </div>
            </div>
                    <div class="pager" id="pager">
                        <div>
                        <img class="first" src="../../Content/Body/Images/arrow-stop-180.gif"  alt="first"/>
                        <img class="prev" src="../../Content/Body/Images/arrow-180.gif" alt="prev"/> 
                        <input type="text" class="pagedisplay input-short align-center"/>
                        <img class="next" src="../../Content/Body/Images/arrow.gif" alt="next"/>
                        <img class="last" src="../../Content/Body/Images/arrow-stop.gif" alt="last"/> 
                        <select class="pagesize input-short align-center">
                            <option value="20" selected="selected">20</option>
                            <option value="30">30</option>
                            <option value="40">40</option>
                        </select>
                        </div>
                    </div>
                    
                    <div style="clear: both"></div>
                </div> <!-- End .module-table-body -->
            </div> <!-- End .module --> 
        }                                                                    
	</div> <!-- End .grid_12 -->            
    <div style="clear:both;"></div>            
</div> <!-- End .container_12 -->
<!----------------------------------------------------------------->


    

           

	